package xyz.hubery.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import xyz.hubery.domain.WorkIssue;
import com.baomidou.mybatisplus.extension.service.IService;
public interface WorkIssueService extends IService<WorkIssue>{

    /**
     * 分页查询工单
     * @param page
     * @param status
     * @param startTime
     * @param endTime
     * @return
     */
    Page<WorkIssue> findByPage(Page<WorkIssue> page, Integer status, String startTime, String endTime);

    /**
     * 前台用户分页查询自己的工单
     * @param userId
     * @param page
     * @return
     */
    Page<WorkIssue> issueList(Long userId, Page<WorkIssue> page);
}
